package com.hanxy17.ssh.service.impl;

import com.hanxy17.ssh.dao.IBDao;
import com.hanxy17.ssh.domain.B;
import com.hanxy17.ssh.service.IBService;

//@Service(value = "bService")
public class BServiceImpl implements IBService {
	
//	@Autowired
	private IBDao bDao;
	
	
	
	public IBDao getbDao() {
		return bDao;
	}



	public void setbDao(IBDao bDao) {
		this.bDao = bDao;
	}



	@Override
	public boolean login(String name, String password) {
		 B b = bDao.getBByName(name); 
		 if(b!=null)  
         {  
             if(password.equals(b.getPwd()))  
             {  
                 return true;    
             }  
         }
         return false; 
	}

}
